import { RouteRecordRaw, RouterView } from 'vue-router';
import AsyncComponent from '../utils/async-component';

const TeachingRoute: RouteRecordRaw = {
  path: 'teaching',
  name: 'teaching',
  component: RouterView,
  meta: { title: '教研中台' },
  children: [
    {
      path: 'question',
      name: 'question',
      meta: { title: '题库' },
      component: AsyncComponent(() => import('@/views/question/index.vue'))
    },
    {
      path: 'test-paper',
      name: 'test-paper',
      meta: { title: '试卷库' },
      component: AsyncComponent(() => import('@/views/test-paper/index.vue'))
    },
    {
      path: 'recording',
      name: 'recording',
      meta: { title: '批量录题' },
      component: AsyncComponent(() => import('@/views/recording/index.vue'))
    },
    {
      path: 'course',
      name: 'course',
      meta: { title: '课程管理' },
      component: AsyncComponent(() => import('@/views/course/index.vue'))
    },
    {
      path: 'database',
      name: 'database',
      meta: { title: '资料库' },
      component: AsyncComponent(() => import('@/views/database/index.vue'))
    },
    {
      path: 'knowledge-element',
      name: 'knowledge-element',
      meta: { title: '知识元管理' },
      component: AsyncComponent(() => import('@/views/knowledge-element/index.vue'))
    },
    // {
    //   path: 'plan',
    //   name: 'plan',
    //   meta: { title: '教学计划' },
    //   component: AsyncComponent(() => import('@/views/teaching-plan/index.vue'))
    // }
  ]
}


export default TeachingRoute;